using NHibernate.Expression;

using Wayloop.Fusion.Core.DataAccess;
using Wayloop.Fusion.Core.Objects;

namespace Wayloop.Fusion.Data
{
    public class UserDao : BaseDao<User, int>, IUserDao
    {
        public User GetByUsername(string username)
        {
            return GetUniqueByCriteria(Expression.Eq("Username", username));
        }
    }
}